How can I update an array using useState with as many numbers as the ones I pass to the function

join shbcf.ru